<?php

/*---------------------------------------------------------------------------
 * Please, don't touch this file.
 *
 * If you need to custom this Class, you can edit attribute.php
 * file overwrite and define new methods
 *---------------------------------------------------------------------------
 */

/**
 * Los atributos se crean dinámicamente a partir de los formularios de suscripción. Según el formulario, los atriburos podrán ser:
- boleanos: 1
- textos: lorem ipsum
- fechas: yyyy-mm-dd)
- rangos: aaaa|bbbb
- multivalor: ;aaaa;bbbb;
 *
 * @Authors Gonzalez Federico, Viera Leonel 
 * @package mailing
 * @subpackage model
 *
 * 
 */
class Attribute_protoweb extends Protoweb_models {
  public $table      = "attributes";
  public $model      = "attribute";
  public $has_many   = array('attrvalue');
  public $has_one    = array('client');
  public $validation = array(
    'name' => array(
      'label' => 'Name',
      'rules' => array('trim', 'required')      
    ),
    'type' => array(
      'label' => 'Type',
      'rules' => array('trim', 'required')
    )
  ); // $validation
  

  public function __construct($id = NULL) {
    parent::__construct($id);
  } // end of method __construct($id = NULL)

} // Class Attribute_protoweb

/* End of file Attribute_protoweb.php */
/* Location: ./system/application/models/Attribute_protoweb.php */